package com.xjscrm.server.mapper;

import com.xjscrm.common.entity.WwTagsDevice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface WwTagsDeviceMapper {
    int deleteById(@Param("id") Long id);

    int insert(WwTagsDevice record);

    int insertSelective(WwTagsDevice record);

    WwTagsDevice selectById(@Param("id") Long id);

    /**
     * 查询企微标签
     * @author jitwxs
     * @date 2024/3/14 16:45
     * @return null
     */
    WwTagsDevice selectSystemTagsByTagIdAndDeviceUniqueId(@Param("tagId") String tagId, @Param("merId") Long merId);

    /**
     * 查询个人标签
     * @author jitwxs
     * @date 2024/3/14 16:45
     * @return null
     */
    WwTagsDevice selectPersonalTagsByTagIdAndDeviceUniqueId(@Param("tagId") String tagId, @Param("deviceUniqueId") Long deviceUniqueId);

    int updateByIdSelective(WwTagsDevice record);

    int updateById(WwTagsDevice record);
}